package com.zsc.graduate.qovipan.sql;

import com.zsc.graduate.qovipan.util.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 枫树下奶罐
 * @version 1.0.0
 * @date 2022/4/19 17:56
 */
@Service
public class UserOpServiceImpl implements UserOpService {

    @Autowired
    private UserOpMapper userOpMapper;

    @Override
    public User findByQid(Long id) {
        return userOpMapper.findByQid(id);
    }

    @Override
    public User findByName(String username) {
        return userOpMapper.findByName(username);
    }

    @Override
    public List<User> findUserAll() {
        return userOpMapper.findUserAll();
    }
}
